package Thread;

import java.util.concurrent.atomic.AtomicIntegerArray;

/**
 * @author VX5
 * @Title: MJC
 * @ProjectName DataStructure
 * @Description: TODO
 * @date ${DAT}16:46
 */
public class AtomicIntegerArrayTest {
    static int[] value = {1,2};
    static AtomicIntegerArray AI = new AtomicIntegerArray(value);

    public static void main(String[] args) {
        AI.getAndSet(0,3);
        System.out.println(AI.get(0));
        System.out.println(value[0]);
    }
}
